From 07e8be555cee5cc5d717c005f801d638f8d1495f Mon Sep 17 00:00:00 2001 From: "kaf24@scramble.cl.cam.ac.uk" Date: Thu, 4 Sep 2003 15:55:41 +0000 Subject: [PATCH] bitkeeper revision 1.404 (3f57607dkEm0-zZkL-qD7DTt8vKceQ) apic.c: Another bug fix for no-APIC systems. --- xen/arch/i386/apic.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/xen/arch/i386/apic.c b/xen/arch/i386/apic.c index ecc96eab2f..f2ea5bd4a0 100644 --- a/xen/arch/i386/apic.c +++ b/xen/arch/i386/apic.c @@ -683,6 +683,13 @@ int reprogram_ac_timer(s_time_t timeout) return 0; /* timeout value in the past */ } + /* + * If we don't have local APIC then we just poll the timer list off the + * PIT interrupt. Cheesy but good enough to work on eg. VMware :-) + */ + if ( !cpu_has_apic ) + return 1; + /* conversion to bus units */ apic_tmict = (((u64)bus_scale) * expire)>>18; -- 2.30.2